package org.jeecg.modules.platform.fallback;

import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.platform.api.PlatformOrganizationApi;
import org.jeecg.modules.platform.entity.CyPlatformOrganizationInfo;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingClass;
import org.springframework.stereotype.Component;

@Component
@ConditionalOnMissingClass("org.jeecg.modules.platform.organization.controller.CyPlatformOrganizationInfoController")
public class PlatformOrganizationFallback implements PlatformOrganizationApi {
    @Override
    public Result<CyPlatformOrganizationInfo> getById(String id) {
        throw new RuntimeException("未开通组织");
    }
}
